import Layout from '@/views/layout/frame/Layout.vue'

export default [
  // 巡检管理
  {
    path: '/alarm',
    component: Layout,
    hidden: false,
    alwaysShow: true,
    name: 'alarm',
    meta: {
      title: '报警管理',
      icon: 'iconfont icon-xunjianguanli',
      roles: ['CUSTOMER_USER', 'TENANT_ADMIN', 'TENANT_SUPPORT']
    },
    children: [
      {
        path: 'alarmSetting',
        name: 'alarmSetting',
        meta: { title: '报警设置', icon: 'iconfont icon-xunjianguanli' },
        component: () => import('@/views/alarmManage/alarmSettings.vue')
      },
      {
        path: 'realTime',
        name: 'realTimeAlarm',
        meta: { title: '实时报警', icon: 'iconfont icon-xunjianguanli' },
        component: () => import('@/views/alarmManage/realTimeAlarm.vue')
      },
      {
        path: 'history',
        name: 'historyAlarm',
        meta: { title: '历史报警', icon: 'iconfont icon-xunjianguanli' },
        component: () => import('@/views/alarmManage/historyAlarm.vue')
      }
    ]
  }
]
